package org.aeon.gamechatnest.pojo;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.aeon.gamechatnest.validated.Add;
import org.aeon.gamechatnest.validated.Update;

import java.io.Serial;
import java.io.Serializable;

/**
 * 用户信息表
 *
 * @author Liys 2024年5月14日
 * @TableName user_info
 */
@Data
@TableName("user_info")
public class UserInfo implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;
    /**
     * 用户id
     */
    @Schema(description = "用户id", name = "userId")
    @TableId
    @NotNull(groups = {Add.class, Update.class}, message = "用户id不能为空")
    private Long userId;
    /**
     * 个人简介
     */
    @Schema(description = "个人简介", name = "introduce")
    private String introduce;

}
